package com.ruoyi.clues.service.impl;


import com.ruoyi.clues.domain.TbClue;
import com.ruoyi.clues.domain.TbClueTrackRecord;
import com.ruoyi.clues.mapper.TbClueMapper;
import com.ruoyi.clues.mapper.TbClueTrackRecordMapper;
import com.ruoyi.clues.service.ITbClueTrackRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 线索跟进记录Service业务层处理
 */
@Service
public class TbClueTrackRecordServiceImpl implements ITbClueTrackRecordService {

    @Autowired
    private TbClueTrackRecordMapper tbClueTrackRecordMapper;

    @Autowired
    private TbClueMapper tbClueMapper;
    @Override
    public int insertTbClueTrackRecord(TbClue tbClue, TbClueTrackRecord trackRecord) {
        tbClueMapper.updateTbClue(tbClue);
        return tbClueTrackRecordMapper.insertTbClueTrackRecord(trackRecord);
    }
}
